package com.zrc.module_find.activity.defrecycleview.demo2

import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zrc.module_find.R
import com.zrc.module_find.activity.defrecycleview.DemoResponse

/**
 * @Author: superman
 * @CreateTime: 2022/1/11
 * @Describe:
 */
class Adapter1 : BaseQuickAdapter<DemoResponse.OtherListBean, BaseViewHolder>(R.layout.rv_item_left) {
    override fun convert(holder: BaseViewHolder, item: DemoResponse.OtherListBean) {
        val tv_order= holder.getView<TextView>(R.id.tv_name)//序号
        tv_order.text="${holder.layoutPosition}"
        addChildClickViewIds(R.id.tv_name)
    }
}